<!DOCTYPE HTML>
<html lang="zh">
<head>
<title>Spring Data Redis - Spring Data Redis | Docs4dev</title>
<meta charset="UTF-8">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="Spring Data Redis是更大的Spring Data系列的一部分，可以从Spring应用程序轻松配置和访问Redis。它提供了与 Redis 交互的低级和高级抽象，使用户免于基础设施问题。">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta property="og:type" content="website">
<meta property="og:title" content="Spring Data Redis - Spring Data Redis">
<meta property="og:url" content="https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/">
<meta property="og:site_name" content="Docs4dev">
<meta property="og:locale" content="zh_CN">
<meta name="twitter:card" content="Spring Data Redis是更大的Spring Data系列的一部分，可以从Spring应用程序轻松配置和访问Redis。它提供了与 Redis 交互的低级和高级抽象，使用户免于基础设施问题。">
<meta name="generator" content="Docs4dev template engine">
<link rel="stylesheet" href="static/css/app.min.css">
<link rel="shortcut icon" href="https://www.docs4dev.com/static/images/favicon.ico" type="image/x-icon">
<script async="" src="static/js/js.js"></script>
<script async="" src="static/js/adsbygoogle.js" crossorigin="anonymous"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
      dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'UA-129571937-1');
  </script>
<link rel="amphtml" href="https://www.docs4dev.com/amp/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/index.html">

<script type="application/ld+json">{"name":null,"headline":"Spring Data Redis-Spring Data Redis","inLanguage":"zh-CN","version":"1.8.18.RELEASE","image":"/static/icon/icon-spring-data.png","datePublished":"2021-05-20T12:51:01Z","dateCreated":"2021-05-20T12:51:01Z","dateModified":"2021-07-03T12:24:35Z","@context":"https://schema.org/","@type":"APIReference","abstract":"Spring Data Redis是更大的Spring Data系列的一部分，可以从Spring应用程序轻松配置和访问Redis。它提供了与 Redis 交互的低级和高级抽象，使用户免于基础设施问题。"}</script>
</head>
<body>
<div class="book with-summary">
<div class="book-summary">
<div class="logo">
<a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference');" style="color: inherit;">
<img src="static/picture/icon-spring-data.png" style="width: 48px; height: 48px;" alt="Logo">
</a>
<b style="color: inherit; margin-left: 8px;">Spring Data Redis</b>
</div>
<div class="item">
<div>
<label for="version">版本</label>
<select id="version" onchange="onVersionChange(this)">
<option value="1.8.18.RELEASE" selected="selected">1.8.18.RELEASE</option>
<option value="2.1.5.RELEASE">2.1.5.RELEASE</option>
</select>
</div>
<div style="margin-top: 8px;">
<label for="language">语言</label>
<select id="language" onchange="onLangChange(this)" value="zh">
<option value="en">English</option>
<option value="zh" selected="selected">中文</option>
</select>
</div>

</div>
<div class="item menus">
<a title="Table of Contents" style="margin-right: 8px;" href="#">
<i class="fa fa-chevron-left"></i>
<span style="margin-left: 2px;">返回目录</span>
</a>
</div>
<nav role="navigation" id="navigation">
<ul class="summary">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_preface');" title="Preface"> Preface </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-features');" title="1. New Features"> 1. New Features </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1.8.0');" title="1.1. Spring Data Redis 1.8 的新功能"> 1.1. Spring Data Redis 1.8 的新功能 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1.7.0');" title="1.2. Spring Data Redis 1.7 的新功能"> 1.2. Spring Data Redis 1.7 的新功能 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1-6-0');" title="1.3. Spring Data Redis 1.6 的新功能"> 1.3. Spring Data Redis 1.6 的新功能 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1-5-0');" title="1.4. Spring Data Redis 1.5 的新功能"> 1.4. Spring Data Redis 1.5 的新功能 </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#introduction');" title="Introduction"> Introduction </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#why-spring-redis');" title="2. 为什么选择 Spring Data Redis？"> 2. 为什么选择 Spring Data Redis？ </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#requirements');" title="3. Requirements"> 3. Requirements </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started');" title="4. Getting Started"> 4. Getting Started </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps');" title="4.1. 第一步"> 4.1. 第一步 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:spring');" title="4.1.1. 学习 Spring"> 4.1.1. 学习 Spring </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:nosql');" title="4.1.2. 学习 NoSQL 和键值存储"> 4.1.2. 学习 NoSQL 和键值存储 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:samples');" title="4.1.3. 试用 samples"> 4.1.3. 试用 samples </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help');" title="4.2. 需要帮助吗？"> 4.2. 需要帮助吗？ </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help:community');" title="4.2.1. 社区支持"> 4.2.1. 社区支持 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help:professional');" title="4.2.2. 专业支持"> 4.2.2. 专业支持 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:up-to-date');" title="4.3. 开发后"> 4.3. 开发后 </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#reference');" title="Reference Documentation"> Reference Documentation </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis');" title="5. Redis support"> 5. Redis support </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:requirements');" title="5.1. Redis 要求"> 5.1. Redis 要求 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:architecture');" title="5.2. Redis 支持高级视图"> 5.2. Redis 支持高级视图 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors');" title="5.3. 连接到 Redis"> 5.3. 连接到 Redis </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:connection');" title="5.3.1. RedisConnection 和 RedisConnectionFactory"> 5.3.1. RedisConnection 和 RedisConnectionFactory </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:jedis');" title="5.3.2. 配置 Jedis 连接器"> 5.3.2. 配置 Jedis 连接器 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:jredis');" title="5.3.3. 配置 JRedis 连接器(从 1.7 开始不推荐使用)"> 5.3.3. 配置 JRedis 连接器(从 1.7 开始不推荐使用) </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:srp');" title="5.3.4. 配置 SRP 连接器(从 1.7 开始不推荐使用)"> 5.3.4. 配置 SRP 连接器(从 1.7 开始不推荐使用) </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:lettuce');" title="5.3.5. 配置 Lettuce 连接器"> 5.3.5. 配置 Lettuce 连接器 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:sentinel');" title="5.4. Redis Sentinel 支持"> 5.4. Redis Sentinel 支持 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:template');" title="5.5. 通过 RedisTemplate 处理对象"> 5.5. 通过 RedisTemplate 处理对象 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:string');" title="5.6. 以字符串为中心的便利班"> 5.6. 以字符串为中心的便利班 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:serializer');" title="5.7. Serializers"> 5.7. Serializers </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.hashmappers.root');" title="5.8. 哈希 Map"> 5.8. 哈希 Map </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_hash_mappers');" title="5.8.1. 哈希 Map 器"> 5.8.1. 哈希 Map 器 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.hashmappers.jackson2');" title="5.8.2. Jackson2HashMapper"> 5.8.2. Jackson2HashMapper </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#pubsub');" title="5.9. Redis 消息传递(Pub/Sub)"> 5.9. Redis 消息传递(Pub/Sub) </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:pubsub:publish');" title="5.9.1. 发布(发送消息)"> 5.9.1. 发布(发送消息) </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:pubsub:subscribe');" title="5.9.2. 订阅(接收邮件)"> 5.9.2. 订阅(接收邮件) </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#tx');" title="5.10. RedisTransaction"> 5.10. RedisTransaction </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#tx.spring');" title="5.10.1. @Transaction 支持"> 5.10.1. @Transaction 支持 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#pipeline');" title="5.11. Pipelining"> 5.11. Pipelining </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#scripting');" title="5.12. Redis 脚本"> 5.12. Redis 脚本 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:support');" title="5.13. 支持类"> 5.13. 支持类 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:support:cache-abstraction');" title="5.13.1. 支持 Spring Cache 抽象"> 5.13.1. 支持 Spring Cache 抽象 </a> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#cluster');" title="6. Redis Cluster"> 6. Redis Cluster </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_enabling_redis_cluster');" title="6.1. 启用 Redis 集群"> 6.1. 启用 Redis 集群 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_working_with_redis_cluster_connection');" title="6.2. 使用 Redis 群集连接"> 6.2. 使用 Redis 群集连接 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_working_with_code_redistemplate_code_and_code_clusteroperations_code');" title="6.3. 使用 RedisTemplate 和 ClusterOperations"> 6.3. 使用 RedisTemplate 和 ClusterOperations </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories');" title="7. Redis Repositories"> 7. Redis Repositories </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.usage');" title="7.1. Usage"> 7.1. Usage </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.mapping');" title="7.2. 对象到哈希的 Map"> 7.2. 对象到哈希的 Map </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_customizing_type_mapping');" title="7.2.1. 自定义类型 Map"> 7.2.1. 自定义类型 Map </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.keyspaces');" title="7.3. Keyspaces"> 7.3. Keyspaces </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes');" title="7.4. 次要索引"> 7.4. 次要索引 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes.simple');" title="7.4.1. 简单属性索引"> 7.4.1. 简单属性索引 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes.geospatial');" title="7.4.2. 地理空间索引"> 7.4.2. 地理空间索引 </a> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.expirations');" title="7.5. 生存时间"> 7.5. 生存时间 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.references');" title="7.6. 坚持引用"> 7.6. 坚持引用 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.partial-updates');" title="7.7. 坚持部分更新"> 7.7. 坚持部分更新 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.queries');" title="7.8. 查询和查询方法"> 7.8. 查询和查询方法 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.cluster');" title="7.9. 在集群上运行的 Redis 存储库"> 7.9. 在集群上运行的 Redis 存储库 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.cdi-integration');" title="7.10. CDI 集成"> 7.10. CDI 集成 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_redis_repositories_anatomy');" title="7.11. Redis 存储库解剖"> 7.11. Redis 存储库解剖 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_insert_new');" title="7.11.1. 插入新"> 7.11.1. 插入新 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_replace_existing');" title="7.11.2. 替换现有的"> 7.11.2. 替换现有的 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_save_geo_data');" title="7.11.3. 保存地理数据"> 7.11.3. 保存地理数据 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_find_using_simple_index');" title="7.11.4. 使用简单索引查找"> 7.11.4. 使用简单索引查找 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_find_using_geo_index');" title="7.11.5. 使用地理位置索引查找"> 7.11.5. 使用地理位置索引查找 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendixes');" title="Appendixes"> Appendixes </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendix:schema');" title="附录 A：架构"> 附录 A：架构 </a> </li>
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendix:command-reference');" title="附录 B：命令参考"> 附录 B：命令参考 </a>
<ul class="articles">
<li class="chapter"> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_supported_commands');" title="Supported Commands"> Supported Commands </a> </li>
</ul> </li>
</ul> </li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<header class="book-header">
<div class="dropdown pull-right js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-globe"></i>
</a>
<div class="dropdown-menu dropdown-left">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('zh_CN')">中文</button>
</div>
<div class="buttons">
<button class="button size-1" onclick="changeLang('en_US')">English</button>
</div>
</div>
</div>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign up" href="register.html">
<i class="fa fa-sign-in"></i> <span>注册</span>
</a>
<a class="btn pull-right js-toolbar-action non-mobile" aria-label="Sign in" href="register.html">
<i class="fa fa-sign-in"></i>
<span>登录</span>
</a>
<a class="btn pull-left js-toolbar-action btn-summary" href="#"><i class="fa fa-align-justify"></i></a>
<div class="dropdown pull-left font-settings js-toolbar-action">
<a class="btn toggle-dropdown" aria-label="Font Settings" href="#">
<i class="fa fa-font"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<button class="button size-2 font-reduce">A</button>
<button class="button size-2 font-enlarge">A</button>
</div>
<div class="buttons">
<button class="button size-2 family-serif">Serif</button>
<button class="button size-2 family-sans">Sans</button>
</div>
<div class="buttons">
<button class="button size-3 theme-white">White</button>
<button class="button size-3 theme-sepia">Sepia</button>
<button class="button size-3 theme-night">Night</button>
</div>
</div>
</div>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
<a class="btn pull-left js-toolbar-action non-mobile" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
<div class="dropdown pull-left js-toolbar-action mobile">
<a class="btn toggle-dropdown" aria-label="Language" href="#">
<i class="fa fa-chevron-down"></i>
</a>
<div class="dropdown-menu dropdown-right">
<div class="dropdown-caret"><span class="caret-outer"></span><span class="caret-inner"></span></div>
<div class="buttons">
<a class="button size-1" aria-label="Home" href="zh.html">
<i class="fa fa-home"></i> <span>首页</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Guide" href="javascript:window.open('https://www.javadoc.org/');">
<i class="fa fa-book"></i> <span>API Docs</span>
</a>
</div>
<div class="buttons">
<a class="button size-1" aria-label="Tools" href="index1.html">
<i class="fa fa-gears"></i> <span>工具</span>
</a>
</div>
</div>
</div>
<div id="autocomplete" class="pull-right"></div>
<span id="toolbar-title"></span>
</header>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<section class="normal markdown-section">
<div id="content">
<h1>Spring Data Redis</h1>
<div><ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-6108808167664152" data-ad-slot="6964403648"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div><div class="divider">
<span class="divider-inner-text">Table of Contents</span>
</div>
<ul class="toc">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_preface');" title="Preface"> Preface </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-features');" title="1. New Features"> 1. New Features </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1.8.0');" title="1.1. Spring Data Redis 1.8 的新功能"> 1.1. Spring Data Redis 1.8 的新功能 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1.7.0');" title="1.2. Spring Data Redis 1.7 的新功能"> 1.2. Spring Data Redis 1.7 的新功能 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1-6-0');" title="1.3. Spring Data Redis 1.6 的新功能"> 1.3. Spring Data Redis 1.6 的新功能 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#new-in-1-5-0');" title="1.4. Spring Data Redis 1.5 的新功能"> 1.4. Spring Data Redis 1.5 的新功能 </a> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#introduction');" title="Introduction"> Introduction </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#why-spring-redis');" title="2. 为什么选择 Spring Data Redis？"> 2. 为什么选择 Spring Data Redis？ </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#requirements');" title="3. Requirements"> 3. Requirements </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started');" title="4. Getting Started"> 4. Getting Started </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps');" title="4.1. 第一步"> 4.1. 第一步 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:spring');" title="4.1.1. 学习 Spring"> 4.1.1. 学习 Spring </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:nosql');" title="4.1.2. 学习 NoSQL 和键值存储"> 4.1.2. 学习 NoSQL 和键值存储 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:first-steps:samples');" title="4.1.3. 试用 samples"> 4.1.3. 试用 samples </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help');" title="4.2. 需要帮助吗？"> 4.2. 需要帮助吗？ </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help:community');" title="4.2.1. 社区支持"> 4.2.1. 社区支持 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:help:professional');" title="4.2.2. 专业支持"> 4.2.2. 专业支持 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#get-started:up-to-date');" title="4.3. 开发后"> 4.3. 开发后 </a> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#reference');" title="Reference Documentation"> Reference Documentation </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis');" title="5. Redis support"> 5. Redis support </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:requirements');" title="5.1. Redis 要求"> 5.1. Redis 要求 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:architecture');" title="5.2. Redis 支持高级视图"> 5.2. Redis 支持高级视图 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors');" title="5.3. 连接到 Redis"> 5.3. 连接到 Redis </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:connection');" title="5.3.1. RedisConnection 和 RedisConnectionFactory"> 5.3.1. RedisConnection 和 RedisConnectionFactory </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:jedis');" title="5.3.2. 配置 Jedis 连接器"> 5.3.2. 配置 Jedis 连接器 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:jredis');" title="5.3.3. 配置 JRedis 连接器(从 1.7 开始不推荐使用)"> 5.3.3. 配置 JRedis 连接器(从 1.7 开始不推荐使用) </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:srp');" title="5.3.4. 配置 SRP 连接器(从 1.7 开始不推荐使用)"> 5.3.4. 配置 SRP 连接器(从 1.7 开始不推荐使用) </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:connectors:lettuce');" title="5.3.5. 配置 Lettuce 连接器"> 5.3.5. 配置 Lettuce 连接器 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:sentinel');" title="5.4. Redis Sentinel 支持"> 5.4. Redis Sentinel 支持 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:template');" title="5.5. 通过 RedisTemplate 处理对象"> 5.5. 通过 RedisTemplate 处理对象 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:string');" title="5.6. 以字符串为中心的便利班"> 5.6. 以字符串为中心的便利班 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:serializer');" title="5.7. Serializers"> 5.7. Serializers </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.hashmappers.root');" title="5.8. 哈希 Map"> 5.8. 哈希 Map </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_hash_mappers');" title="5.8.1. 哈希 Map 器"> 5.8.1. 哈希 Map 器 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.hashmappers.jackson2');" title="5.8.2. Jackson2HashMapper"> 5.8.2. Jackson2HashMapper </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#pubsub');" title="5.9. Redis 消息传递(Pub/Sub)"> 5.9. Redis 消息传递(Pub/Sub) </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:pubsub:publish');" title="5.9.1. 发布(发送消息)"> 5.9.1. 发布(发送消息) </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:pubsub:subscribe');" title="5.9.2. 订阅(接收邮件)"> 5.9.2. 订阅(接收邮件) </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#tx');" title="5.10. RedisTransaction"> 5.10. RedisTransaction </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#tx.spring');" title="5.10.1. @Transaction 支持"> 5.10.1. @Transaction 支持 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#pipeline');" title="5.11. Pipelining"> 5.11. Pipelining </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#scripting');" title="5.12. Redis 脚本"> 5.12. Redis 脚本 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:support');" title="5.13. 支持类"> 5.13. 支持类 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis:support:cache-abstraction');" title="5.13.1. 支持 Spring Cache 抽象"> 5.13.1. 支持 Spring Cache 抽象 </a> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#cluster');" title="6. Redis Cluster"> 6. Redis Cluster </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_enabling_redis_cluster');" title="6.1. 启用 Redis 集群"> 6.1. 启用 Redis 集群 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_working_with_redis_cluster_connection');" title="6.2. 使用 Redis 群集连接"> 6.2. 使用 Redis 群集连接 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_working_with_code_redistemplate_code_and_code_clusteroperations_code');" title="6.3. 使用 RedisTemplate 和 ClusterOperations"> 6.3. 使用 RedisTemplate 和 ClusterOperations </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories');" title="7. Redis Repositories"> 7. Redis Repositories </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.usage');" title="7.1. Usage"> 7.1. Usage </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.mapping');" title="7.2. 对象到哈希的 Map"> 7.2. 对象到哈希的 Map </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_customizing_type_mapping');" title="7.2.1. 自定义类型 Map"> 7.2.1. 自定义类型 Map </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.keyspaces');" title="7.3. Keyspaces"> 7.3. Keyspaces </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes');" title="7.4. 次要索引"> 7.4. 次要索引 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes.simple');" title="7.4.1. 简单属性索引"> 7.4.1. 简单属性索引 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.indexes.geospatial');" title="7.4.2. 地理空间索引"> 7.4.2. 地理空间索引 </a> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.expirations');" title="7.5. 生存时间"> 7.5. 生存时间 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.references');" title="7.6. 坚持引用"> 7.6. 坚持引用 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.partial-updates');" title="7.7. 坚持部分更新"> 7.7. 坚持部分更新 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.queries');" title="7.8. 查询和查询方法"> 7.8. 查询和查询方法 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.cluster');" title="7.9. 在集群上运行的 Redis 存储库"> 7.9. 在集群上运行的 Redis 存储库 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#redis.repositories.cdi-integration');" title="7.10. CDI 集成"> 7.10. CDI 集成 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_redis_repositories_anatomy');" title="7.11. Redis 存储库解剖"> 7.11. Redis 存储库解剖 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_insert_new');" title="7.11.1. 插入新"> 7.11.1. 插入新 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_replace_existing');" title="7.11.2. 替换现有的"> 7.11.2. 替换现有的 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_save_geo_data');" title="7.11.3. 保存地理数据"> 7.11.3. 保存地理数据 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_find_using_simple_index');" title="7.11.4. 使用简单索引查找"> 7.11.4. 使用简单索引查找 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_find_using_geo_index');" title="7.11.5. 使用地理位置索引查找"> 7.11.5. 使用地理位置索引查找 </a> </li>
</ul> </li>
</ul> </li>
</ul> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendixes');" title="Appendixes"> Appendixes </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendix:schema');" title="附录 A：架构"> 附录 A：架构 </a> </li>
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#appendix:command-reference');" title="附录 B：命令参考"> 附录 B：命令参考 </a>
<ul class="articles">
<li> <a href="javascript:window.open('https://www.docs4dev.com/docs/zh/spring-data-redis/1.8.18.RELEASE/reference/all.html#_supported_commands');" title="Supported Commands"> Supported Commands </a> </li>
</ul> </li>
</ul> </li>
</ul></div>
</div>
</section>
<div class="right-sidebar">
<div class="affix"><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6108808167664152" data-ad-slot="3102929424" data-ad-format="auto" data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
</div>
</div>
<div class="ft">
<a href="#toolbar-title" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a>
<footer class="footer">
<div class="footer__container--normal">
<img alt="扫码关注公众号" title="扫码关注公众号" src="static/picture/qr-code.png" width="170" height="170">
<div class="footer__description--normal">
<p class="paragraph footer__author--normal">Docs4dev<sup class="super">&#xAE;</sup>
</p>
<p class="paragraph footer__quote&#45;&#45;normal">
如果你在使用过程中遇到任何问题，可以在 <a href="javascript:window.open('https://github.com/docs4dev/docs4dev-issues');" target="_blank" rel="noopener noreferrer">这里<i class="fa fa-external-link"></i></a> 提issue。
</p>
<div class="footer__main--normal">
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
<a href="javascript:window.open('https://beian.miit.gov.cn/');">
蜀ICP备14021783号-6
</a>
</p>
<p class="paragraph footer__main__paragraph--normal copyright" style="color: #666 !important;">
Copyright &#xA9; Docs4dev all
right reserved, powered by <a href="index2.html" target="_blank">Docs4dev</a></p>
</div>
</div>
</div>
<div class="box__issues">
</div>
</footer>
</div>
</div>
</div>
</div>
</div>
<script>
  var hasToc = true;
  /*  var downloadable = /!*false*!/ false;
    var editable = /!*false*!/ false;
    var code = /!*"spring-data-redis"*!/ false;
    var version = /!*"1.8.18.RELEASE"*!/ false;
    var type = /!*"reference"*!/ false;
    var lang = /!*"zh"*!/ 'en';
    //edit link
    require(["gitbook", "jQuery"], function (gitbook, $) {
      gitbook.events.bind('start', function (e, config) {
        // Add edit toolbar to left
        var chapterId = /!*16333*!/ 0;
        if (downloadable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-download',
            text: '下载',
            onClick: function () {
              window.open('/download?code=' + code + '&version=' + version + '&type=' + type + '&lang=' + lang);
            }
          });
        }
        if (editable) {
          gitbook.toolbar.createButton({
            icon: 'fa fa-edit',
            text: '编辑此页',
            onClick: function () {
              window.open('/docs/edit?chapterId=' + chapterId + '&lang=' + lang);
            }
          });
        }
      });
    });*/
</script>
<script>
    var code = "spring-data-redis";
    var lang = "zh";
  </script>

<script src="static/js/autocomplete-js.js"></script>
<script src="static/js/app.min.js"></script>
<script src="static/js/search.min.js"></script>
</body>
</html>
